package com.eastdigit.shiro;

import com.eastdigit.util.PropertiesUtil;

public class ShiroConstants {
    /**
     * 默认premission字符串
     */
    public static final String PREMISSION_STATE = "authc,perms";
    public static final String PREMISSION_STATELESS = "statelessAuthc";

    public static final String PREFIX_STATELESS = "/less/";

    public static final String PARAM_TOKEN = "token";
    
    public static final String PARAM_DIGEST = "_digest";
    public static final String PARAM_USERID = "userId";
    public static final String PARAM_TIMESTAMP = "_timestamp";
    public static final String PARAM_NONCE = "_nonce";
    public static final String KEY = "HvBJ1PkBttbqxeBF46Aa";

    public static final String KICKOUT = "_kickout";
    // 是否对用户登录个数进行校验
    public static boolean USER_LOGIN_CONTROL = "true".equals(PropertiesUtil.getProperty("project.user.LoginControl"));
    // public static boolean USER_STATELESS =
    // "true".equals(PropertiesUtil.getProperty("sys.user.statless"));

//    public static final String URL_TO_LOGIN = "/user/toLogin.do";
//    public static final String URL_LOGIN = "/user/login.do";
//    public static final String URL_INCORRECT_CREDENTIALS = "/incorrectCredentials.do";
}
